package permissao;
// Generated 21/08/2011 22:49:20 by Hibernate Tools 3.2.1.GA

import java.util.List;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import permissaoUsuario.PermissaoUsuario;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Permissao generated by hbm2java
 */
@Entity
@Table(name = "permissao", schema = "public")
public class Permissao implements java.io.Serializable {

    private int idPermissao;
    private String descricaoPermissao;
    private boolean statusPermissao;

    public Permissao() {
    }

    public Permissao(int idPermissao) {
        this.idPermissao = idPermissao;
    }

    public Permissao(int idPermissao, String descricaoPermissao, boolean statusPermissao) {
        this.idPermissao = idPermissao;
        this.descricaoPermissao = descricaoPermissao;
        this.statusPermissao = statusPermissao;
    }

    @Id
    @Column(name = "id_permissao", unique = true, nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getIdPermissao() {
        return this.idPermissao;
    }

    public void setIdPermissao(int idPermissao) {
        this.idPermissao = idPermissao;
    }

    @Column(name = "descricao_permissao", length = 100)
    public String getDescricaoPermissao() {
        return this.descricaoPermissao;
    }

    public void setDescricaoPermissao(String descricaoPermissao) {
        this.descricaoPermissao = descricaoPermissao;
    }

    @Column(name = "status_permissao", length = 100)
    public boolean getStatusPermissao() {
        return this.statusPermissao;
    }

    public void setStatusPermissao(boolean statusPermissao) {
        this.statusPermissao = statusPermissao;
    }

}
